const std = @import("std");
const sys = @import("lib/syscall.zig");

export fn main(argc: usize, argv: [*]const sys.c_str) noreturn {
    const code = if (argc > 1) std.fmt.parseInt(u16, std.mem.sliceTo(argv[1], 0), 0) catch 1 else 0;
    sys.shutdown(code);
}
